phosphor_fan_monitor_test_include_directories = include_directories('../..')

test_deps = [
    gmock_dep,
    gtest_dep,
    nlohmann_json_dep,
    phosphor_logging_dep,
    sdeventplus_dep,
]

test_sources = [files('../logging.cpp')]

test(
    'power_off_cause',
    executable(
        'power_off_cause',
        'power_off_cause_test.cpp',
        dependencies: test_deps,
        implicit_include_directories: false,
        include_directories: [phosphor_fan_monitor_test_include_directories],
    ),
)

test(
    'power_off_rule_test',
    executable(
        'power_off_rule_test',
        sources: test_sources,
        dependencies: test_deps,
        implicit_include_directories: false,
        include_directories: phosphor_fan_monitor_test_include_directories,
    ),
)
